Repository navigation
refactor(rs485): 将 MC02 P4 V1 端口绑定移到 BSP - #35
Merged
Merged
Conversation
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #17
Refs #16
基线
develop的3f8aa576f32f4fa816813a0642c6fb50cb420496已包含 #33。按已审设计将公开同步端口表dmmc02_rs485定义移到 MC02 BSP,V1 和异步后端从同一静态 P4 引脚描述取得操作。V1 保留同步签名、TXE/TC 等待和超时调用原停止路径。两入口共用 USART2 claim、门控、复位和 PCLK1 预检。host-debug根 CTest 127/127,RS485 9/9。真实 BSP 端口表对照覆盖 V1 双向 claim 冲突、非零 mux 拒绝、UART5/PD2 状态保全、正常 TC 完成、首字节及部分 TXE 超时、尾部 TC 超时、冻结 HAL tick、DE 退出与重新领取。dmmc02-debug和dmmc02-release四种工装配置共 8/8。使用RMEC_RS485_BENCH=ON,分别组合RMEC_RS485_ASYNC_BENCH与RMEC_RS485_ECHO_BENCH。各 HEX 与其 ELF 重导出一致,V1 端口表由 BSP 对象提供。tests/unit/ra04_rs485/check_h7_objects.cmake用arm-none-eabi-nm核查两个 H7 后端对象。执行时传入-DNM、-DV1_OBJECT和-DASYNC_OBJECT。八个候选均通过,旧对象的dmmc02_rs485_pins引用被拒绝。新增检查脚本列入源码包。